sentence=input()
S=sentence.split()
print(len(S))